package cn.stylefeng.guns.modular.order.entity;

import java.math.BigDecimal;

public class Orderdetail {

//商品数字ID
   private long  ptypeid  =1111;
//商品商家编码 （客户填写的商家编码。如果网点启用强制按商家编码对应，此参数必须传值）

    private  String outid ="测试";

//商品名称
    private  String productname  ="测试";

    //子订单编号（商品明细的索引，需保证明细的唯一性）

    private  long  oid  =11111;

//图片地址

    private  String picurl = "测试";
// Sku数字id
   private  long  skuid  =11111;
// Sku属性名称

    private  String  platformpropertiesname  ="测试";
    // 商品条形码
   private   String barcode  ="测试";
   // 套餐ID

private  long  comboid  =1111;

// 网店商品原单价 150.2

private BigDecimal  tradeoriginalprice  = new BigDecimal("1212");

//   金额 (接口不会直接取这个明细金额，金额计算方式为 price = tradeoriginalprice - preferentialtotal / qty）

private  BigDecimal price = new BigDecimal("1212") ;
// 优惠金额 （如果商品明细有多个数量，此金额为所有数量优惠金额的总和）

    private  BigDecimal    preferentialtotal = new BigDecimal("1212") ;

// 数量  150.1

  private   BigDecimal qty= new BigDecimal("1212") ;

//退货数量

private BigDecimal refundqty= new BigDecimal("1212") ;

//退货金额总和


    
    
private   BigDecimal  refundtotal= new BigDecimal("1212") ;

//是否赠品 （如果商品金额为零，系统会将此商品标记为赠品）

private  boolean   Isgift=true;

//售后状态（0=正常,1=卖家同意,2=退款成功）  1

    private  int  refundstatus=1;

// 明细是否被删除
    private  boolean  isclosed=true;

//税金  1.21

private  BigDecimal  taxfee=new BigDecimal("1212");

    public long getPtypeid() {
        return ptypeid;
    }

    public void setPtypeid(long ptypeid) {
        this.ptypeid = ptypeid;
    }

    public String getOutid() {
        return outid;
    }

    public void setOutid(String outid) {
        this.outid = outid;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public long getOid() {
        return oid;
    }

    public void setOid(long oid) {
        this.oid = oid;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public long getSkuid() {
        return skuid;
    }

    public void setSkuid(long skuid) {
        this.skuid = skuid;
    }

    public String getPlatformpropertiesname() {
        return platformpropertiesname;
    }

    public void setPlatformpropertiesname(String platformpropertiesname) {
        this.platformpropertiesname = platformpropertiesname;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public long getComboid() {
        return comboid;
    }

    public void setComboid(long comboid) {
        this.comboid = comboid;
    }

    public BigDecimal getTradeoriginalprice() {
        return tradeoriginalprice;
    }

    public void setTradeoriginalprice(BigDecimal tradeoriginalprice) {
        this.tradeoriginalprice = tradeoriginalprice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPreferentialtotal() {
        return preferentialtotal;
    }

    public void setPreferentialtotal(BigDecimal preferentialtotal) {
        this.preferentialtotal = preferentialtotal;
    }

    public BigDecimal getQty() {
        return qty;
    }

    public void setQty(BigDecimal qty) {
        this.qty = qty;
    }

    public BigDecimal getRefundqty() {
        return refundqty;
    }

    public void setRefundqty(BigDecimal refundqty) {
        this.refundqty = refundqty;
    }

    public BigDecimal getRefundtotal() {
        return refundtotal;
    }

    public void setRefundtotal(BigDecimal refundtotal) {
        this.refundtotal = refundtotal;
    }

    public boolean isIsgift() {
        return Isgift;
    }

    public void setIsgift(boolean isgift) {
        Isgift = isgift;
    }

    public int getRefundstatus() {
        return refundstatus;
    }

    public void setRefundstatus(int refundstatus) {
        this.refundstatus = refundstatus;
    }

    public boolean isIsclosed() {
        return isclosed;
    }

    public void setIsclosed(boolean isclosed) {
        this.isclosed = isclosed;
    }

    public BigDecimal getTaxfee() {
        return taxfee;
    }

    public void setTaxfee(BigDecimal taxfee) {
        this.taxfee = taxfee;
    }

    @Override
    public String toString() {
        return "Orderdetail{" +
                "ptypeid=" + ptypeid +
                ", outid='" + outid + '\'' +
                ", productname='" + productname + '\'' +
                ", oid=" + oid +
                ", picurl='" + picurl + '\'' +
                ", skuid=" + skuid +
                ", platformpropertiesname='" + platformpropertiesname + '\'' +
                ", barcode='" + barcode + '\'' +
                ", comboid=" + comboid +
                ", tradeoriginalprice=" + tradeoriginalprice +
                ", price=" + price +
                ", preferentialtotal=" + preferentialtotal +
                ", qty=" + qty +
                ", refundqty=" + refundqty +
                ", refundtotal=" + refundtotal +
                ", Isgift=" + Isgift +
                ", refundstatus=" + refundstatus +
                ", isclosed=" + isclosed +
                ", taxfee=" + taxfee +
                '}';
    }

    public  void  Orderdetail(){

    }
}
